#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "ModbusServer.h"
#include <QButtonGroup>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private Q_SLOTS:
    void onNewData(const QString &name, const QVariant& value);
    void onButtonClicked(QAbstractButton *);

private:
    ModbusServer* modbusServer = nullptr;
    Ui::MainWindow *ui;
    QButtonGroup buttonGroup;
};

#endif // MAINWINDOW_H
